package d1_file;

import java.io.File;
import java.io.IOException;

public class t3 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("D:\\wuyong\\cpdd.txt");
        System.out.println(f1.createNewFile());//创建文件

        File f2 = new File("D:\\wuyong\\aaa");
        System.out.println(f2.mkdir());//创建单极文件夹

        File f3 = new File("D:\\wuyong\\bbb\\AA1BAd5P.jfif");
        System.out.println(f3.mkdirs());

        System.out.println(f2.delete());
        System.out.println(f3.delete());

        File f4 = new File("D:\\wuyong");
        System.out.println(f4.delete());
    }
}
